<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页广告</title> <#include "/WEB-INF/content/module-index.html">
<script type="text/javascript">
function statusFormatter(value,rowData,rowIndex){
	if(value=='0'){
		return "不可用";
	}else if(value == '1'){
		return "可用";
	}else{
		return "未知";
	}
}

function typeFormatter(value,rowData,rowIndex){
	if(value=='0'){
		return "富文本";
	}else
		if(value=='1'){
			return "连接";
		}else{
				return "未知";
			}
}

</script>
<style>
a.btn-border{
	border: 1px solid #ccc;
}
</style>
</head>
<body>
<body class="easyui-layout">
	<div region="center" style="padding: 5px; background:#eee;">
		<div id="toolbar">
		<@auth code="activity:column:new">
			<a href="javascript:void(0);" class="easyui-linkbutton btn-border" plain="true" iconCls="icon-add" onclick="javascript:add();">新增</a> 
		</@auth>
		<@auth code="activity:column:*:edit">
			<a href="javascript:void(0);" class="easyui-linkbutton btn-border" plain="true" iconCls="icon-edit" onclick="javascript:edit();">编辑</a> 
		</@auth>	
		<@auth code="activity:column:*:delete"> 
			<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-remove" style="border: 1px solid #ccc" onclick="javascript:del()">删除</a>
		</@auth>
		</div>
		<table id="grid" class="easyui-datagrid" url="query" align="center" idField="id" rownumbers="true" striped="true" fitColumns="true" fit="true" pagination="true" singleSelect="true" toolbar="#toolbar">
			<thead>
				<tr>
					<th field="typeName" width="20">所属类型</th>
					<th field="title" width="20">栏目名称</th>
					<th field="contentType" width="20" formatter="typeFormatter">内容类型</th>
					<th field="subTitle" width="20">栏目简介</th>
					<th field="showOrder" width="10">展示顺序</th>
					<th field="status" width="20" formatter="statusFormatter">活动状态</th>
					<th field="creator" width="20">创建者</th>
					<th field="creatTime" width="20">创建时间</th>
				</tr>
			</thead>
		</table>
	</div>
</body>
</body>

</html>